import 'package:json_annotation/json_annotation.dart';
import 'package:yt_devops/utils/enums.dart';

part 'slave_ems_network_model.g.dart';

@JsonSerializable()
class SlaveEmsNetworkModel {
  // 设备id
  int? deviceId;
  // 网络状态
  ConnectStatusType? status;
  // 设备名称
  String? deviceName;
  // sn
  String? sn;
  SlaveEmsNetworkModel({this.deviceId, this.sn, this.status, this.deviceName});

  factory SlaveEmsNetworkModel.fromJson(Map<String, dynamic> json) =>
      _$SlaveEmsNetworkModelFromJson(json);

  Map<String, dynamic> toJson() => _$SlaveEmsNetworkModelToJson(this);
}
